<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script type="text/javascript" src="../js/jquery-1.4.1.js" ></script>

    <script>

        var stu={
            name:"张无忌",
            printName:function(){
                console.log(this.name);
            },
        }

        stu.printName();

        var Stu =function(name){
            this.name=name;
            this.printName=function(){
                console.log(this.name);
            }
        }

        var s = new Stu("赵敏");
        s.printName();


    </script>


</head>
<body>
    <input type="button" class="abc" value="OK">
</body>
</html>